package com.xxxt.entity;

import java.util.List;

//年级表
public class Grade {
private String gradeId;//年级ID

private String grade;//年级名称

private Specialty specialty;//与年级关联的专业

private List<ClassGrade> classGrades;//与年级关联的所有班级


public Grade(String gradeId, String grade, Specialty specialty, List<ClassGrade> classGrades) {
	super();
	this.gradeId = gradeId;
	this.grade = grade;
	this.specialty = specialty;
	this.classGrades = classGrades;
}
public Grade(String gradeId, String grade, Specialty specialty) {
	super();
	this.gradeId = gradeId;
	this.grade = grade;
	this.specialty = specialty;
}
public Grade(String gradeId) {
	super();
	this.gradeId = gradeId;
}
public Grade(String grade, Specialty specialty, List<ClassGrade> classGrades) {
	super();
	this.grade = grade;
	this.specialty = specialty;
	this.classGrades = classGrades;
}

public Grade() {}
public String getGradeId() {
	return gradeId;
}
public void setGradeId(String gradeId) {
	this.gradeId = gradeId;
}
public String getGrade() {
	return grade;
}
public void setGrade(String grade) {
	this.grade = grade;
}
public Specialty getSpecialty() {
	return specialty;
}
public void setSpecialty(Specialty specialty) {
	this.specialty = specialty;
}
public List<ClassGrade> getClassGrades() {
	return classGrades;
}
public void setClassGrades(List<ClassGrade> classGrades) {
	this.classGrades = classGrades;
}
@Override
public String toString() {
	return "Grade [gradeId=" + gradeId + ", grade=" + grade + ", specialty=" + specialty + ", classGrades="
			+ classGrades + "]";
}


}
